package com.ll.ztest;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.PropertyConfigurator;

public class Log4JServlet extends HttpServlet
{
	
	@Override
	public void init() throws ServletException
	{
		String path = this.getServletContext().getRealPath("/");
		PropertyConfigurator.configure(path + "/WEB-INF/log4j.properties");
	}
}
